Order Placement Command Channel
Shared Kafka topic owned by the contributor team carrying Finance order placement commands to Basket API for cleanup and Notification API for email.
Purpose & Scope
This shared command topic carries order-placement commands published by Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs after checkout begins. Two independent consumers subscribe to it: Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs removes the submitted basket and reports the outcome, while Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs renders and submits a new-order confirmation email. Publication here does not confirm that basket cleanup or email delivery succeeded.
Shared Multi-Consumer Topic: Never blindly replay messages to bookworm.{env}.finance.place-order. Replaying to this topic triggers both Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets,
Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs and Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders
MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs again. Use the consumer-specific dead-letter channel (Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API
messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs or Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order
notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs) when recovering a single consumer.
Channel Specification
| Property | Value |
|---|---|
| Bounded Context / Owner | OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs / Commerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs |
| Channel Type | Topic |
| Address Pattern | bookworm.{env}.finance.place-order |
| Parameters | env (development, staging, production; default: development) |
| Protocol & Envelope Format | Kafka + CloudEvents JSON (application/json) |
| Partition Key & Ordering Guarantee | Keyed by orderId; preserves per-order command ordering within a partition |
| Delivery Semantics | At-least-once |
| Dead-Letter Channel | Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs (Notification) and Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs (Basket) |
Messages & Participants
| Message | Type | Producer | Consumer(s) | Consumer Group |
|---|---|---|---|---|
| Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs | Command | Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs | Basket service consumer; Notification service consumer |
Ordering, Retries & Failure Handling
- Partition-key ordering: Keying by
orderIdensures commands for the same order stay serialized per partition across both consumer groups. - Transient retries: Each consumer group manages its own bounded retry/backoff policy independently (Redis retries in Basket; SMTP retries and listener cooldowns in Notification).
- Immediate DLQ routing: Poison payloads, deserialization errors, or exhausted retries route independently to Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs or Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs.
- Consumer idempotency: Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs handles repeated cleanup idempotently; Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs uses a 24-hour message-ID cache, though timeout reissues with a new message ID can send another email.
Channel Details & Visualization
Channel information
bookworm.{env}.finance.place-order- kafka
| Parameter | Description | Options | Default |
|---|---|---|---|
| env | BookWorm deployment environment. | development, staging, production | development |
Related Documentation
- Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs — Basket consumer dead-letter queue
- Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs — Notification consumer dead-letter queue
- User Checkout Event ChannelChannelv1.0.0User Checkout Event ChannelKafka topic owned by the commerce-fulfillment-team carrying Order API checkout events that initiate Finance post-checkou...Ownercommerce-fulfillment-teamOpen docs — Upstream checkout trigger topic
- Basket Delete CompleteChannelv1.0.0Basket Delete CompleteKafka topic owned by the contributor team carrying Basket API's successful checkout cleanup confirmation for Finance ord...Ownercommerce-fulfillment-teamOpen docs — Basket cleanup success topic
- Basket Delete FailedChannelv1.0.0Basket Delete FailedKafka topic owned by the contributor team carrying Basket API's explicit checkout cleanup failure outcome for Finance co...Ownercommerce-fulfillment-teamOpen docs — Basket cleanup failure topic
- Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Command producer
- Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Cleanup consumer
- Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs — Email consumer
- User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs — End-to-end checkout workflow
- Notification DeliveryFlowv1.0.0Notification DeliveryFinance emits order-notification commands over Kafka; Notification API applies Redis idempotency, renders MJML email tem...Ownerplatform-engineering-teamView flowOpen docs — Notification delivery workflow
- Contracts and MessagingCustom DocContracts and MessagingOwned APIs and events connect independently maintained BookWorm capabilities without sharing business state.Ownerplatform-engineering-teamOpen doc — Messaging standards and idempotency rules